package com.manlost.web.common.cookie;

import com.manlost.web.common.cookie.MLostCookieNamePolicy.CookieMaxAge;
import com.manlost.web.common.cookie.MLostCookieNamePolicy.CookiePath;


/**
 * 定义manlost域下的所有cookie
 * 
 * @author kang.zhouk
 *
 */
public enum MLostCookieNameEnum {

	/**
	 * 会话级别cookie
	 */
	@MLostCookieNamePolicy(maxAge = CookieMaxAge.TEMP, path = CookiePath.ROOT)
    MLSC_TEMP("mlsc_t"),
    
    /**
     * 持久级别cookie
     */
    @MLostCookieNamePolicy(maxAge = CookieMaxAge.FOREVER, path = CookiePath.ROOT)
    MLSC_FOREVER("mlsc_f");
	
	private String value;

    private MLostCookieNameEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return this.value;
    }
}
